package cn.iocoder.yudao.module.jky.controller.admin.goodsattribute.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;

/**
 * 商品属性 Base VO，提供给添加、修改、详细的子 VO 使用
 * 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 */
@Data
public class GoodsAttributeBaseVO {

    @Schema(description = "商品主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "9210")
    private Short goodsAttributeId;

    @Schema(description = "所属商品分类ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "9210")
    @NotNull(message = "所属商品分类ID不能为空")
    private Short goodsCatId;

    @Schema(description = "商品属性名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五")
    @NotNull(message = "商品属性名称不能为空")
    private String goodsAttributeName;

    @Schema(description = "排序 数字越大越在前", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "排序 数字越大越在前不能为空")
    private Integer sort;

    @Schema(description = "是否显示 Y显示 N不显示", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "是否显示 Y显示 N不显示不能为空")
    private String isShow;

}
